<?php

class TimeHelper
{
	protected $iStart = null;
	
	protected $iStop = null;
	
	public function startClock()
	{
		$this->iStart = microtime(true);
	}
	
	public function stopClock()
	{
		$this->iStop = microtime(true);
		$iDifference = ($this->iStop - $this->iStart);
		
		return $iDifference; 
	}
}